<!--{template common/header}-->
<!--[name]自适应门户--频道一级全频道[/name]-->
<!--{eval $data = array();}-->
<!--{eval $wheresql = category_get_wheresql($cat);}-->
<!--{eval $data = category_get_list_more($cat, $wheresql);}-->
<!--{eval}-->
function get_article_num($aid, $type) {  $aid = intval($aid);  $type = trim($type);  $typearray = array(   'viewnum','commentnum','favtimes','sharetimes' );
    if ($aid == 0 || !in_array($type, $typearray)) {  return false; } else { return DB::result_first("SELECT $type FROM " . DB::table('portal_article_count') . " WHERE aid = '$aid'"); }
}
<!--{/eval}-->
<style type="text/css">

</style>
<div class="pdnv">
    <div class="klp_con"><a href="./" title="{lang homepage}">{lang homepage}</a> <em class="klp_font"> > </em>
    <!--{loop $cat[ups] $value}-->
    <a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a><em class="klp_font"> > </em>
    <!--{/loop}-->
    $cat[catname] 
        <ul class="nav">
			<div class="bm_h cl" style="background:none; line-height:inherit; border:none; padding-right:0">
<!--{if $_G[setting][rssstatus] && !$_GET['archiveid']  && !klp_BeMobile()}--><a href="portal.php?mod=rss&catid=$cat[catid]" class="xi2 rss" target="_blank" title="RSS">{lang rss_subscribe_this}</a><!--{/if}-->

			</div>
            
        </ul>
    </div>
</div>
<!--{ad/text/wp a_t}--> 

<style id="diy_style" type="text/css"></style>
<style>
	.klp_wp{ width:100%}
	#wp{width:auto !important;}
</style>
<div class="wp klp_con">
	<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
  <div class="klp_con klp_catwp"> 
   <div class="klp_listwp"> 
   <div class="klp_catnv cl dismnone">
   	<ul class="cl">
   		
   		<!--{if $cat[subs]}-->	
   		<!--{loop $cat[subs] $value}-->	<li><a href="{$portalcategory[$value['catid']]['caturl']}" {if $value['catid'] == $cat['catid']}class="caton"{/if}>$value[catname]</a></li><!--{/loop}-->
   		<!--{else}-->
   			<!--{loop $cat[others] $value}-->	<li><a href="{$portalcategory[$value['catid']]['caturl']}" {if $value['catid'] == $cat['catid']}class="caton"{/if}>$value[catname]</a></li><!--{/loop}-->
   		
   		<!--{/if}-->

   	</ul>
   </div>
    <div class="klp_listboxcon klp_zongone"> 
<div class="mn">
		<!--[diy=listlooptop]--><div id="listlooptop" class="area"></div><!--[/diy]-->
		<!--{if $cat[subs]}-->
			<div class="bm bm2 bw0 cl">
			<!--{eval $counter = 1;}-->
			<!--{loop $data $key $item}-->
			<!--{eval $subcatid = intval(str_replace('subcate', '', $key));}-->
			<!--{if !empty($portalcategory[$subcatid])}-->
				<div class="bm2_b {echo swapclass('bm2_b_y');}">
					<div class="bm_h cl">
						<span class="y xi2">
							<!--{if ($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($portalcategory[$subcatid]['disallowpublish'])}-->
								<a href="portal.php?mod=portalcp&ac=article&catid=$subcatid">{lang article_publish}</a>
								<span class="pipe">|</span>
							<!--{/if}-->
							<a href="{$portalcategory[$subcatid]['caturl']}">{lang more}&rsaquo;</a>
						</span>
						<h2>{$portalcategory[$subcatid]['catname']}</h2>
					</div>
					<div class="bm_c">
						<ul class="xl xl1">
						<!--{loop $item $value}-->
							<!--{eval $article_url = fetch_article_url($value);}-->
							<li><span class="xl1_elp"> <a href="$article_url" target="_blank">$value[title]</a></span>
								<em><!--{eval echo dgmdate($value['timestamp'], 'm-d')}--></em>
							</li>
						<!--{/loop}-->
						</ul>
					</div>
				</div>
				<!--{if $counter % 2 == 0}--></div><div class="bm bm2 bw0 cl"><!--{/if}-->
				<!--{eval $counter++;}-->
			<!--{/if}-->
			<!--{/loop}-->
			</div>
		<!--{/if}-->

		<!--[diy=listloopbottom]--><div id="listloopbottom" class="area"></div><!--[/diy]-->
	</div>
    </div> 
    
    <div class="klp_pindaosd"> 
		<div class="klp_catnvsd cl disnone">
			<ul class="cl">
				<div class="klp_catnvfirst"><a href="">栏目导航</a></div>
				<!--{if $cat[subs]}-->	
				<!--{loop $cat[subs] $value}-->	<li><a href="{$portalcategory[$value['catid']]['caturl']}" {if $value['catid'] == $cat['catid']}class="caton"{/if}>$value[catname]</a></li><!--{/loop}-->
				<!--{else}-->
				<!--{loop $cat[others] $value}-->	<li><a href="{$portalcategory[$value['catid']]['caturl']}" {if $value['catid'] == $cat['catid']}class="caton"{/if}>$value[catname]</a></li><!--{/loop}-->
				<!--{/if}-->
			</ul>
		</div>
    			<!--[diy=klp_side300001]-->
			<div id="klp_side300001" class="area"></div>
			<!--[/diy]-->
		

			<!--热门排行-->
			<div class="klp_clear"></div>
			<!--[diy=klp_remenrank]--><div id="klp_remenrank" class="area"></div><!--[/diy]-->
			<div class="klp_clear"></div>
			<!--热门排行-->
			
						<div class="drag">
				<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
			</div>

   </div>
   </div> 
   
  </div>

<!--{template common/footer}-->